@extends('admin.layouts')

@section('content')
<div class="box box-warning">
    <div class="box-body">
        <div id="fileuploader">Upload</div>
<!--        <form role="form" id="frmCreate">
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">Title (*)</span>
                <input type="text" class="form-control" placeholder="Title" name="txtTitle" id="txtTitle" aria-describedby="basic-addon1">
            </div>
            <br/>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1" >Description (*)</span>
                <textarea class="form-control" rows="3" placeholder="Description" name="txtDescription" id="txtDescription"></textarea>
            </div>
            <br/>
            <div class="form-group">
                <label for="exampleInputFile">Photo</label>
                <input type="file" id="filePhoto" name="filePhoto">
            </div>
            <div class="box-footer">
                <button type="submit" class="btn btn-primary">Submit</button>
            </div>
        </form>-->
    </div>
</div>

<script>
    $().ready(function() {
        $("#fileuploader").uploadFile({
            url:"create",
            fileName:"myfile"
	});
//        $("#frmCreate").validate({
//            rules: {
//                txtTitle: "required",
//                filePhoto: "required"
//            },
//            messages: {
//                txtTitle: "Please enter title",
//                filePhoto: "Please select photo"
//            }
//        });
    });
</script>

@stop